package com.community.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.community.entity.Parking;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ParkingDao extends BaseMapper<Parking> {

    @Select("SELECT * FROM `parking` WHERE car_state=1 AND personnel_state=1")
    List<Parking> randomParking();
}
